package com.moss.cloud.base.api.rpc;

import com.moss.cloud.base.api.model.from.PreUserFrom;
import com.moss.cloud.base.api.model.from.SysUserForm;
import com.moss.cloud.common.core.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Component
@FeignClient(value = "moss-cloud-base", contextId = "BaseRpcService")
public interface BaseRpcService {

    /**
     * 保存用户信息
     * @param sysUserForm
     * @return
     * @throws Exception
     */
    @PostMapping("/base/sysUser/saveUser")
    Result<Boolean> saveUser(@RequestBody SysUserForm sysUserForm) throws Exception;

    /**
     * 删除用户信息
     * @param
     * @return
     */
    @PostMapping("/removeUser")
    Result<Boolean> removeUser(@RequestBody PreUserFrom preUserFrom);
}
